package com.lancoo.ccas53.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 排课冲突信息
 * </p>
 *
 * @author quin.song
 * @since 2023-03-31
 */
@Data
@Accessors(chain = true)
@TableName("schedule_conflict_info")
@ApiModel(value = "ScheduleConflictInfo对象", description = "排课冲突信息")
public class ScheduleConflictInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Integer taskId;

    private Long teachingClassId;

    private Long roomId;

    @ApiModelProperty("timeCode")
    private String timeCode;
    @ApiModelProperty("timeGroup")
    private String timeGroup;
    private Integer hourType;

    private Integer clashHourType;
    private String clashTimeGroup;

    @ApiModelProperty("1:教学班冲突 2教室冲突（容量不足） 3教师冲突 4学生冲突 5未分配（没有分配教室课时）6行政班冲突")
    private Integer conflictType;

    @ApiModelProperty("冲突原因")
    private String conflictReason;

    @ApiModelProperty("与当前教学班排课单元，产生冲突的教学班id")
    private Long clashTeachingClassId;

    @ApiModelProperty("冲突的周次二进制字符串")
    private String clashWeeks;

    @ApiModelProperty("冲突点。学生id /教师id")
    private Long clashUnit;


    //与当前教学班排课单元，产生冲突的教学班的排课单元id
    @TableField(exist = false)
    private Integer clashCourseUnitId;
}
